import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import i18n from '@/lang'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n
// import zhloacle from 'element-ui/lib/locale/lang/zh-CN'
import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon 图标
import '@/permission' // permission control 路由拦截
// 组件全局注册
import Components from './components'
Vue.use(Components)
// 语言
Vue.use(ElementUI)
// 阻止启动生产消息，常用作指令。不报黄
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App)
})
